package at.spengergasse.abifs.SDJPATest.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@NamedQuery(name="Coach.findByID", query="select c from Coach c where c.c_id = ?1")
@Table(name="coach")
public class Coach implements Serializable
{

	private static final long serialVersionUID = -1117928662154095580L;

	@Column(name="c_id")
	@Id
	@GeneratedValue
	private Long c_id;
	
	@Column(name = "c_firstname")
	private String c_firstname;
	
	@Column(name = "c_lastname")
	private String c_lastname;
	
	@Column(name = "c_skill")
	private String c_skill;
	
	@Column(name = "c_employedsince")
	private Date c_employedsince;
	
	@Embedded
	private Adress adress;

	public Long getID() {
		return c_id;
	}

	public void setID(Long c_id) {
		this.c_id = c_id;
	}

	public String getFirstname() {
		return c_firstname;
	}

	public void setFirstname(String c_firstname) {
		this.c_firstname = c_firstname;
	}

	public String getLastname() {
		return c_lastname;
	}

	public void setLastname(String c_lastname) {
		this.c_lastname = c_lastname;
	}

	public String getSkill() {
		return c_skill;
	}

	public void setSkill(String c_skill) {
		this.c_skill = c_skill;
	}

	public Date getEmployedsince() {
		return c_employedsince;
	}

	public void setEmployedsince(Date c_employedsince) {
		this.c_employedsince = c_employedsince;
	}
	
	public Adress getAdress()
	{
		return adress;
	}
	
	public void setAdress(Adress adress)
	{
		this.adress = adress;
	}
}
